package com.yeyks.config.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * app信息
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppInfo对象", description="app信息")
public class AppInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer Id;

    @ApiModelProperty(value = "类型：Android，iOS")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "版本号")
    @TableField("version")
    private String version;

    @ApiModelProperty(value = "版本名称(iOS为空，Android为需要比较的版本号)")
    @TableField("version_code")
    private Integer versionCode;

    @ApiModelProperty(value = "升级理由")
    @TableField("reason")
    private String reason;

    @ApiModelProperty(value = "下载路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "0 不更新，1更新，2强制更新")
    @TableField("forced_update")
    private Integer forcedUpdate;

    @ApiModelProperty(value = "是否启用 0:不启用 1:启用")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "Id";

    public static final String TYPE = "type";

    public static final String VERSION = "version";

    public static final String VERSION_CODE = "version_code";

    public static final String REASON = "reason";

    public static final String PATH = "path";

    public static final String FORCED_UPDATE = "forced_update";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

}
